package cn.edu.nju.software.cdiy.util;

public class Constant {
	//一些常数
	public static final int HARDWARE_AMOUNT = 13;	//硬件部件的数量
	public static final int PAGE_LENGTH = 10;		//每页显示的个数
	public static final int PAGE_RETURN = 10;		//每次返回的页数
	public static final int NEW_LIST_LENGTH = 10;	//最新硬件列表长度
	public static final int HOT_LIST_LENGTH = 10;	//最热硬件列表长度
	public static final int RANK_LIST_LENGTH = 10;	//装机方案排行列表长度
	public static final int RELATED_SCHEME_NUM = 4;	//每个硬件相关订单的个数
	
	public static final int PRICE_GAP = 5;//价格区间数目
	
	public static final String DEFAULT_ASSESS_MESSAGE = "信息不足";//默认评估意见
	public static final String DEFAULT_OPTIMIZE_MESSAGE = "暂无优化建议";//默认优化意见
	
	public static final int WSCORE_DEFAULT = 0;//网友评分初始值
	public static final int ZSCORE_DEFAULT = 0;//专家评分初始值
	public static final int HW_DEFAULT_STATE = 882;//新增硬件的默认状态
	
	public static final String[] chaItemNameList={"brand","price","type","structure"};
	public static final String[] cpuItemNameList={"brand","price","cpuxl","coreNum","manuTech","wordSize","coreType"};
	public static final String[] diskItemNameList={"brand","price","singleCapacity","rotateSpeed","cacheSize"};
	public static final String[] driverItemNameList={"brand","price","type","installationMode","cacheSize"};
	public static final String[] graItemNameList={"brand","price","coreType","videoMemType","videoMemCapacity","videoMemBitWide"};
	public static final String[] kbdItemNameList={"brand","price"};
	public static final String[] mbItemNameList={"brand","price","MBArchitect","CPUSlot","maxMem"};
	public static final String[] memItemNameList={"brand","price","memCapacity","memType","memFrequency"};
	public static final String[] monitorItemNameList={"brand","price","screenSize","screenRatio","panelType"};
	public static final String[] mouseItemNameList={"brand","price"};
	public static final String[] netItemNameList={"brand","price","transmitSpeed"};
	public static final String[] powItemNameList={"brand","price","ratedPower","fanSize"};
	public static final String[] radItemNameList={"brand","price","RGMaterial","heatEmissionFinMaterial","type"};
	public static final String[] sbItemNameList={"brand","price","type","soundTunnel","material","regulationMode"};
	public static final String[] scItemNameList={"brand","price","type","soundTunnel","sampleSize"};
	
	public static final String commonInforStr[]={"客服电话","质保政策","质保时间","质保具体内容","入库价格","出库价格","入库时间","图片路径","状态","供货商"};
	public static final String chaInforStr[]={"机箱型号","扩展插槽","5.25英寸仓位","3.5英寸仓位","2.5英寸仓位","机箱尺寸","机箱重量","免工具拆装","附件"};
	public static final String chaSelectStr[]={"机箱品牌","机箱类型","机箱结构","机箱材质","理线功能"};
	public static final String chaComboBoxStr[]={"机箱接口","支持主板架构"};
	
	public static final String cpuInforStr[]={"CPU型号","主频","最大睿频","倍频","核心电压","Turboboost技术","HT超线程技术","显示核心频率","TDP技术","虚拟化技术"};
	public static final String cpuSelectStr[]={"CPU品牌","CPU系列","CPU核心类型","CPU生产工艺","位数","核心数量","线程数","1级缓存","2级缓存","3级缓存","显示核心","插槽类型"};
	
	public static final String diskInforStr[]={"硬盘型号","传输速率"};
	public static final String diskSelectStr[]={"硬盘品牌","单碟容量","硬盘转速","缓存容量","硬盘尺寸","接口标准"};
	public static final String diskComboBoxStr[]={"","",""};
	
	public static final String driInforStr[]={"光驱型号"};
	public static final String driSelectStr[]={"光驱品牌","光驱类型","安装方式","缓存容量","接口类型"};
	public static final String driComboBoxStr[]={"读取速度","写入速度"};
	
	public static final String graInforStr[]={"显卡型号","核心频率","显存频率","SP单元","散热描述"};
	public static final String graSelectStr[]={"显卡品牌","显卡核心生产厂商","显卡核心类型","显卡核心代号","显卡核心生产工艺","显卡核心位宽","显存类型","显存容量","显存位宽","显存封装","directx版本","opengl版本","支持最大分辨率","电源接口","总线接口"};
	public static final String graComboBoxStr[]={"IO接口"};
	
	public static final String mbInforStr[]={"主板型号","特色功能","内存插槽数目","主板尺寸","附件","板载声卡","板载网卡","磁盘阵列","供电模式"};
	public static final String mbSelectStr[]={"主板品牌","CPU生产厂商","芯片组","适用内存类型","主板板型","最大支持内存","支持通道","电源接口","CPU插槽","内存插槽"};
	public static final String mbComboBoxStr[]={"CPU系列","扩展插槽","IO接口","支持内存频率"};
	
	public static final String memoryInforStr[] = {"内存型号","最大容量描述","插脚数目","CL延迟"};
	public static final String memorySelectStr[] = {"内存品牌","内存类型","内存频率","内存容量","颗粒封装","插槽类型"};
	
	public static final String monitorInforStr[]={"显示器型号","亮度","动态对比度","静态对比度","灰度响应时间","水平可视角度","垂直可视角度","显示颜色","额定功率","外观设计","附件","其他"};
	public static final String monitorSelectStr[]={"显示器品牌","显示器类型","产品定位","屏幕尺寸","屏幕比例","面板类型","最佳分辨率","背光类型"};
	public static final String monitorComboBoxStr[]={"视频接口"};
	
	public static final String netInforStr[]={"网卡型号","传输介质","网卡芯片","全双工","远程唤醒","LED显示器","其他","操作系统"};
	public static final String netSelectStr[]={"网卡品牌","网络类型","传输速率","总线接口类型","网线接口类型"};
	public static final String netComboBoxStr[]={"网络标准"};
	
	public static final String powInforStr[]={"电源型号","额定功率","电源输入","3V输出电流","5V输出电流","5Vsb输出电流","12V1输出电流","12V2输出电流","-12输出电流","附件"};
	public static final String powSelectStr[]={"电源品牌","PFC类型","风扇尺寸","出线类型"};
	public static final String powComboBoxStr[]={"电源接口"};
	
	public static final String radInforStr[]={"散热器型号","最高转速","转速描述","噪音","热管数量","产品尺寸","产品重量","智能控温技术","电源参数","附件"};
	public static final String radSelectStr[]={"散热器品牌","散热器类型","轴承类型","热管材质","散热片材质"};
	public static final String radComboBoxStr[]={"支持CPU类型","散热方式"};
	
	public static final String sbInforStr[]={"音箱型号","额定功率","有源无源","音箱颜色","频率响应","产品尺寸","阻抗","产品重量","附件","信噪比"};
	public static final String sbSelectStr[]={"音箱品牌","音箱类型","声道","调节方式","音箱材质"};
	public static final String sbComboBoxStr[]={"输入接口"};
	
	public static final String scInforStr[]={"声卡型号","声卡芯片","支持音效","其他"};
	public static final String scSelectStr[]={"声卡品牌","类型","声道","采样位数","总线接口"};
	public static final String scComboBoxStr[]={"IO接口"};
	
	/*session中的键值*/
	public static final String S_AUTHENTICODE = "authenticode";
	
	public static final String S_BRAND_LISTS = "brandLists";
	public static final String S_NEW_LISTS = "newLists";
	public static final String S_HOT_LISTS = "hotLists";
	
	public static final String S_MAINBOARD_FILTER = "mainboardFilter";
	public static final String S_MAINBOARD_RESULT = "mainboardResult";
	public static final String S_MAINBOARD_QUERY_STRING = "mainboardQueryString";
	public static final String S_MAINBOARD_RESULT_AMOUNT = "mainboardResultAmount";
	public static final String S_MAINBOARD_PAGE_NUM = "mainboardPageNum";
	public static final String S_MAINBOARD = "mainboard";
	
	public static final String S_SCHEME_FILTER = "schemeFilter";
	public static final String S_SCHEME_RESULT = "schemeResult";
	public static final String S_SCHEME_QUERY_STRING = "schemeQueryString";
	public static final String S_SCHEME_RESULT_AMOUNT = "schemeResultAmount";
	public static final String S_SCHEME_PAGE_NUM = "schemePageNum";
	
	public static final String S_RANKLIST_TIME = "timeRankList";
	public static final String S_RANKLIST_SALE = "saleRankList";
	public static final String S_RANKLISTS_BRAND = "brandRankLists";
	public static final String S_RANKLISTS_PRICE = "priceRankLists";
	public static final String S_RANKLISTS_TYPE = "typeRankLists";
	
	
	/*排序方式*/
	public static final int TIME = 1;
	public static final int SALE = 2;
	public static final int PRICE_LOW = 3;
	public static final int PRICE_HIGH = 4;
	public static final int SCORE_USER = 5;
	public static final int SCORE_PRO = 6;
	public static final int PERFORMANCE = 7;
	
	//各硬件性能指数参考指标
	/* CPU性能参考指标
	 * 
	 * 主频：masterFrequency 权重：30
	 * 超线程：HT 			  权重：10	
	 * 核心数量：coreNum		  权重：30
	 * 制作工艺：manuTech	  权重：20
	 * 虚拟化：virtualization 权重：5
	 * turbo boost			 权重：5
	 * */
	public static final double CPU_STD_MASTERFREQUENCY=0.3;
	public static final double CPU_STD_HT=0.1;
	public static final double CPU_STD_CORENUM=0.3;
	public static final double CPU_STD_MANUTECH=0.2;
	public static final double CPU_STD_VIRTUALIZATION=0.05;
	public static final double CPU_STD_TURBOBOOST=0.05;
	
	
	/* 主板性能参考指标
	 * 支持最大内存：maxMem					权重：30
	 * 芯片组：chipSet						权重：20
	 * 支持内存类型：compatibleMEM			权重：30
	 * 支持通道模式：compatibleTunnel		权重：20
	 * */
	public static final double MB_STD_MAXMEM=0.3;
	public static final double MB_STD_CHIPSET=0.2;
	public static final double MB_STD_COMPATIBLEMEM=0.3;
	public static final double MB_STD_COMPATIBLETUNNEL=0.2;
	
	
	/* 硬盘性能参考指标
	 * 单碟容量：singleCapacity				权重：40
	 * 转速：rotateSpeed						权重：20
	 * 缓存容量：cacheSize					权重：20
	 * 接口标准：intfStd						权重：20
	 * */
	public static final double DISK_STD_SINGLECAPACITY=0.4;
	public static final double DISK_STD_ROTATESPEED=0.2;
	public static final double DISK_STD_CACHESIZE=0.2;
	public static final double DISK_STD_INTFSTD=0.2;
	
	
	/* 显卡性能参考指标
	 * 显存：videoMemCapacity				权重：30
	 * 位宽：videoMemBitWide					权重：20
	 * 显存类型：videoMemType				权重：30
	 * 核心频率：coreFrequency				权重：10
	 * 显存频率：videoMemFrequency			权重：10
	 * */
	public static final double GRA_STD_VIDEOMEMCAPACITY=0.3;
	public static final double GRA_STD_VIDEOMEMBITWIDE=0.2;
	public static final double GRA_STD_VIDEOMEMTYPE=0.3;
	public static final double GRA_STD_COREFREQUENCY=0.1;
	public static final double GRA_STD_VIDEOMEMFREQUENCY=0.1;
	
	
	
	/* 内存性能参考指标
	 * 内存类型：memType						权重：30
	 * 内存频率：memFrequency				权重：30
	 * 内存容量：memCapacity					权重：40
	 * */
	public static final double MEM_STD_MEMTYPE=0.3;
	public static final double MEM_STD_MEMFREQUENCY=0.3;
	public static final double MEM_STD_MEMCAPACITY=0.4;
	
	
	
	/* 显示器性能参考指标
	 * 屏幕尺寸：screenSize					权重：5
	 * 屏幕对比度：screenRatio				权重：10
	 * 分辨率：optimumResolution				权重：20
	 * 亮度：brightness						权重：10
	 * 响应时间：grayResponseTime			权重：20
	 * 颜色：displayColor					权重：25
	 * */
	public static final double MON_STD_SCREENSIZE=0.05;
	public static final double MON_STD_SCREENRATIO=0.1;
	public static final double MON_STD_OPTIMUMRESOLUTION=0.2;
	public static final double MON_STD_BRIGHTNESS=0.1;
	public static final double MON_STD_GRAYRESPONSETIME=0.2;
	public static final double MON_STD_DISPLAYCOLOR=0.25;
	
	
	
	
	/* 网卡性能参考指标
	 * 总线类型：busType						权重：20
	 * 接口类型：portType					权重：20
	 * 传输速率：transmitSpeed				权重：40
	 * 全双工：fullDuplex					权重：10
	 * 远程唤醒：remoteWakeup				权重：10
	 * */
	public static final double NET_STD_BUSTYPE=0.2;
	public static final double NET_STD_PORTTYPE=0.2;
	public static final double NET_STD_TRANSMITSPEED=0.4;
	public static final double NET_STD_FULLDUPLEX=0.1;
	public static final double NET_STD_REMOTEWAKEUP=0.1;
	
	
	
	/* 散热器性能参考指标
	 * 最高转速：highestSpeed				权重：20
	 * 噪音：noise							权重：40
	 * 散热方式：type						权重：40
	 * */
	public static final double RAD_STD_HIGHESTSPEED=0.2;
	public static final double RAD_STD_NOISE=0.4;
	public static final double RAD_STD_TYPE=0.4;
	
	
	
	/* 音箱性能参考指标
	 * 额定功率：ratedPower						权重：50
	 * 声道：soundTunnel							权重：30
	 * 有源无源：activeOrPassive					权重：20
	 * */
	public static final double SB_STD_RATEDPOWER=0.5;
	public static final double SB_STD_SOUNDTUNNEL=0.3;
	public static final double SB_STD_ACTIVEORPASSIVE=0.2;
	
	
	
	/* 声卡性能参考指标
	 * 声道：soundChannel						权重：60
	 * 采样位数：sampleSize						权重：40
	 * */
	public static final double SC_STD_SOUNDCHANNEL=0.6;
	public static final double SC_STD_SAMPLESIZE=0.4;
	
	
	
	/* 光驱性能参考指标
	 * 缓存容量：cacheSize						权重：50
	 * 接口类型：intfType						权重：50
	 * */
	public static final double DRI_STD_CACHESIZE=0.5;
	public static final double DRI_STD_INTFTYPE=0.5;
	
	
	//价格区间
	public static final Item[] CHA_PRICE={new Item("150元以下",1),new Item("150-200元",2),new Item("200-300元",3),new Item("300-400元",4),new Item("400-600元",5),new Item("600元以上",6)};
	public static final Item[] CPU_PRICE={new Item("300元以下",1),new Item("300-400元",2),new Item("400-600元",3),new Item("600-1000元",4),new Item("1000-1500元",5),new Item("1500元以上",6)};
	public static final Item[] DISK_PRICE={new Item("400元以下",1),new Item("400-600元",2),new Item("600-1000元",3),new Item("1000元以上",4)};
	public static final Item[] DRIVER_PRICE={new Item("150元以下",1),new Item("150-300元",2),new Item("300-500元",3),new Item("500-800元",4),new Item("800元以上",5)};
	public static final Item[] GRAPHICS_PRICE={new Item("300元以下",1),new Item("300-400元",2),new Item("400-500元",3),new Item("500-600元",4),new Item("600-800元",5),new Item("800-1000元",6),new Item("1000-1500元",7),new Item("1500-2000元",8),new Item("2000元以上",9)};
	public static final Item[] MAINBOARD_PRICE={new Item("300元以下",1),new Item("300-400元",2),new Item("400-500元",3),new Item("500-600元",4),new Item("600-800元",5),new Item("800-1000元",6),new Item("1000-1500元",7),new Item("1500元以上",8)};
	public static final Item[] MEMORY_PRICE={new Item("100元以下",1),new Item("100-200元",2),new Item("200-300元",3),new Item("300-500元",4),new Item("500-1000元",5),new Item("1000元以上",6)};
	public static final Item[] MONITOR_PRICE={new Item("800元以下",1),new Item("800-1000元",2),new Item("1000-1200元",3),new Item("1200-1500元",4),new Item("1500-2000元",5),new Item("2000-3000元",6),new Item("3000-5000元",7),new Item("5000元以上",8)};
	public static final Item[] NETWORKADAPTER_PRICE={new Item("50元以下",1),new Item("50-100元",2),new Item("100-400元",3),new Item("400-1000元",4),new Item("1000元以上",5)};
	public static final Item[] POWER_PRICE={new Item("150元以下",1),new Item("150-200元",2),new Item("200-300元",3),new Item("300-600元",4),new Item("600-1000元",5),new Item("1000元以上",6)};
	public static final Item[] RADIATOR_PRICE={new Item("30元以下",1),new Item("30-50元",2),new Item("50-70元",3),new Item("70-100元",4),new Item("100-400元",5),new Item("400元以上",6)};
	public static final Item[] SOUNDBOX_PRICE={new Item("100元以下",1),new Item("100-200元",2),new Item("200-300元",3),new Item("300-500元",4),new Item("500-1000元",5),new Item("1000元以上",6)};
	public static final Item[] SOUNDCARD_PRICE={new Item("100元以下",1),new Item("100-150元",2),new Item("150-200元",3),new Item("200-300元",4),new Item("300-500元",5),new Item("500-800元",6),new Item("800元以上",7)};
	public static final Item[] POWER_RATED={new Item("100W以下",1),new Item("100-200W",2),new Item("200-300W",3),new Item("300-500W",4),new Item("500-1000W",5),new Item("1000W以上",6)};

}
